home *** CD-ROM | disk | FTP | other *** search
/ Disc to the Future 2 / Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin / MAC / MPW_C / SPELL__ / PPACK.C < prev    next >
Text File  |  1990-07-03  |  670b  |  39 lines

  1. /* Manadatory headers */
  2. #include <stdio.h>
  3. #include "dawg.h"
  4. #include "grope.h"
  5. #include "utils.c"
  6.  
  7. /* Headers here as needed on per-program basis */
  8. #include <ctype.h>  /* for isalpha() */
  9.  
  10. /* Spelling library utilities */
  11. #include "init.c"
  12. #include "print.c"
  13. /*
  14. #include "check.c"
  15. #include "locate.c"
  16. #include "similcmp.c"
  17. #include "soundex.c"
  18. #include "correct.c"
  19. */
  20. /*#include "dyntrie.c"*/
  21.  
  22.  
  23.  
  24. int
  25. #ifdef PROTOTYPES
  26. main(int argc, char **argv)
  27. #else
  28. main(argc, argv)
  29. int argc;
  30. char **argv;
  31. #endif
  32. {
  33. NODE PCCRAP *ptrie;
  34. INDEX nedges;
  35.   if (!pack_init((argc == 1 ? "": argv[1]), &ptrie, &nedges)) exit(EXIT_ERROR);
  36.   pack_print(ptrie, (INDEX)ROOT_NODE);
  37.   exit(0);
  38. }
  39.